<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
    
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<div class="select-list">
						<ul>
							<li>
								操作题题号id：<input type="text" name="qid"/>
							</li>

							<li>
								操作题题型：<input type="text" name="qtid"/>
							</li>

							<li>
								大题中的小题号id：<input type="text" name="hid2"/>
							</li>

							<li>
								要判分的文件：<input type="text" name="filename"/>
							</li>

							<li>
								判分点类别：<input type="text" name="codetype"/>
							</li>

							<li>
								判分点分值：<input type="text" name="score"/>
							</li>

							<li>
								空1错1：<input type="text" name="para1"/>
							</li>

							<li>
								空2错2：<input type="text" name="para2"/>
							</li>

							<li>
								空3错3：<input type="text" name="para3"/>
							</li>

							<li>
								判分点参数：<input type="text" name="para4"/>
							</li>

							<li>
								判分点参数：<input type="text" name="para5"/>
							</li>

							<li>
								判分点参数：<input type="text" name="para6"/>
							</li>

							<li>
								判分点参数/exc,表格编号：<input type="text" name="para7"/>
							</li>

							<li>
								判分点参数：<input type="text" name="para8"/>
							</li>

							<li>
								判分点参数：<input type="text" name="para9"/>
							</li>

							<li>
								判分点参数：<input type="text" name="para10"/>
							</li>

							<li>
								判分点参数：<input type="text" name="para11"/>
							</li>

							<li>
								操作要点：<input type="text" name="errmsg"/>
							</li>

							<li>
								解析：<input type="text" name="qnote"/>
							</li>

							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			
	        <div class="btn-group-sm hidden-xs" id="toolbar" role="group">
				<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="exam:hjudge:add">
					<i class="fa fa-plus"></i> 添加
				</a>
				<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="exam:hjudge:edit">
					<i class="fa fa-edit"></i> 修改
				</a>
				<a class="btn btn-danger btn-del btn-del disabled" onclick="$.operate.removeAll()" shiro:hasPermission="exam:hjudge:remove">
					<i class="fa fa-remove"></i> 删除
				</a>
				<!--<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="exam:hjudge:export">
						<i class="fa fa-download"></i> 导出
				 </a>-->
			</div>
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var prefix = ctx + "exam/hjudge";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                detailUrl: prefix + "/detail/{id}",
                removeUrl: prefix + "/remove",
				exportUrl: prefix + "/export",
                modalName: "操作题的判分点",
				search: false,
		        showExport: true,
                columns: [{
		            checkbox: true
		        },
				{
					field : 'id', 
					title : '',
					visible: false
				},
				{
					field : 'qid', 
					title : '操作题题号id',
					sortable: true
				},
				{
					field : 'qtid', 
					title : '操作题题型',
					sortable: true
				},
				{
					field : 'hid2', 
					title : '大题中的小题号id',
					sortable: true
				},
				{
					field : 'filename', 
					title : '要判分的文件',
					sortable: true
				},
				{
					field : 'codetype', 
					title : '判分点类别',
					sortable: true
				},
				{
					field : 'score', 
					title : '判分点分值',
					sortable: true
				},
				{
					field : 'para1', 
					title : '空1错1',
					sortable: true
				},
				{
					field : 'para2', 
					title : '空2错2',
					sortable: true
				},
				{
					field : 'para3', 
					title : '空3错3',
					sortable: true
				},
				{
					field : 'para4', 
					title : '判分点参数',
					sortable: true
				},
				{
					field : 'para5', 
					title : '判分点参数',
					sortable: true
				},
				{
					field : 'para6', 
					title : '判分点参数',
					sortable: true
				},
				{
					field : 'para7', 
					title : '判分点参数/exc,表格编号',
					sortable: true
				},
				{
					field : 'para8', 
					title : '判分点参数',
					sortable: true
				},
				{
					field : 'para9', 
					title : '判分点参数',
					sortable: true
				},
				{
					field : 'para10', 
					title : '判分点参数',
					sortable: true
				},
				{
					field : 'para11', 
					title : '判分点参数',
					sortable: true
				},
				{
					field : 'errmsg', 
					title : '操作要点',
					sortable: true
				},
				{
					field : 'qnote', 
					title : '解析',
					sortable: true
				},
		        {
		            title: '操作',
		            align: 'center',
		            formatter: function(value, row, index) {
		            	var actions = [];
		            	actions.push('<a class="btn btn-success btn-xs " href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs " href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        actions.push('<a class="btn btn-warning btn-xs " href="#" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-search"></i>详细</a>');
                        return actions.join('');
		            }
		        }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>